package com.examination.client.constant;

public enum ResultCode {
    SUCCESS(10000, "成功"),
    NO_LOGIN(10001, "no login"),
    LOGIN_FAIL(10002, "登录失败，账号或密码错误"),
    EXCEPTION(1003, "发生意外异常"),
    PARAM_IS_INVALID(10004, "参数无效"),
    OLD_LOGIN_FAIL(10005, "修改失败，原密码错误"),
    SIGNED_UP(10006, "报名失败，已经报名"),
    ALREADY_EXPIRED(10007, "报名失败，人员已满"),
    TIME_OUT(10008, "报名失败，您已错过报名时间，请选择其他场次"),
    REPEAT_TEST(10009, "报名失败，一天只能考试一次"),
    ADMISSION_NUMBER_FAIL(10010, "您所在的准考证号段暂时不能预约考试，请耐心等待通知；请注意您的准考证填写是否正确。"),
    NO_HAVE_IN_HAND_TEST(10011, "没有进行中考试"),
    HAVE_IN_HAND_TEST(10012, "报名失败，您已报名，请考试之后再来报名"),
    NO_FIRST_TEST(10013, "报名失败，已首考过，不能首考，请补考"),
    REAL_NAME_FAILED(10014, "报名失败，实名校验失败，请填写正确的身份信息"),
    SESSION_TYPE_ERROR(10015, "报名失败，考试类型错误，请重新选择"),
    CLICK_TOO_FAST(10016, "您点击的太快了"),
    REGISTRATION_RULES_SETTING(10017, "报名失败！由于您已参加过多次考试，下次可报名时间为："),
    SYSTEM_PASSENGER_LOGIN_FAIL(50005, "登录失败，请核对验证码"),
    SYSTEM_PASSENGER_LOGIN_CODE_ALREADY_SEND(50009, "验证码已发送，请等待"),
    ;
    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code() {
        return code;
    }

    public String message() {
        return message;
    }

    public void setMessage(String message){
        this.message = message;
    }
}